/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treeship.core.archetype.impl;

import treeship.core.archetype.ArchetypeProperty;

/**
 *
 * @author Moonchild
 */
public class ArchetypePropertyImpl extends ArchetypeProperty {

    private String name;
    private ArchetypePropertyImpl focus;
    private long id;

    public ArchetypePropertyImpl(String name) {
        this.name = name;
        id = name.hashCode();
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String n) {
        name = n;
    }

    @Override
    public String toString() {
        return name;
    }

    @Override
    public ArchetypeProperty getFocus() {
        return focus;
    }

    public void setFocus(ArchetypePropertyImpl foc) {
        focus = foc;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }
}
